package com.lyz.mail;

import javax.mail.*;

public class MailAuthenticator extends Authenticator {
	// ******************************
	// 由于发送邮件的地方比较多,
	// 下面统一定义用户名,口令.
	// ******************************
	public static String HUAWEI_MAIL_USER = "";
	public static String HUAWEI_MAIL_PASSWORD = "";

	public MailAuthenticator(){
	}

	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(HUAWEI_MAIL_USER, HUAWEI_MAIL_PASSWORD);
	}
}